package test05.xml.configuration;

import org.apache.log4j.Logger;
import org.apache.log4j.xml.DOMConfigurator;

public class TestXMLLogging {

	private static final Logger logger=Logger.getLogger(TestXMLLogging.class);
	
	public static void main(String[] args) {
		// !!! Log4j CONFIGURATION is OBLIGATORY.
		DOMConfigurator.configure("C:/Documents and Settings/"
				+ "Bozhidar Bozhanov/Desktop/installs/eclipse2/workspace/"
				+ "test-logging/src/test05/xml/configuration/resources/"
				+ "log4j.xml");
		
		logger.trace("TRACE message from TestXMLLogging");
		logger.debug("DEBUG message from TestXMLLogging");
		logger.info("INFO message from TestXMLLogging");
		logger.warn("WARN message from TestXMLLogging");
		logger.error("ERROR message from TestXMLLogging");
		logger.fatal("FATAL message from TestXMLLogging");
		logger.fatal("Фатално съобщение от TestXMLLogging");

	}

}
